﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WeatherStationSys.Interface;
using WeatherStationSys.Interface.Scheduler;

namespace Nimbus2._0Platform
{
    /// <summary>
    /// 2.0硬件平台的工厂
    /// </summary>
    public class Nimbus2_0StationTookit : StationTookit
    {
        /// <summary>
        /// 制造2.0气压传感器
        /// </summary>
        /// <returns></returns>
        public override AbstractBarometricPressureSensor MakeBarometricPressure()
        {
            return new Nimbus2_0BarometricPressureSensor();
        }

        /// <summary>
        /// 制造2.0温度传感器
        /// </summary>
        /// <returns></returns>
        public override AbstractTemperatureSensor MakeTemperature()
        {
            return new Nimbus2_0TemperatureSensor();
        }

        /// <summary>
        /// 得到2.0调度器
        /// </summary>
        /// <returns></returns>
        public override IAlarmClock GetAlarmClock()
        {
            return new Nimbus2_0AlarmClock();
        }

        /// <summary>
        /// 得到2.0数据持久化
        /// </summary>
        /// <returns></returns>
        public override IPersistent GetPersistent()
        {
            return null;
        }
    }
}
